package cn.tedu.tmall.common;

import lombok.Getter;
import lombok.experimental.FieldDefaults;

@Getter
public enum ServiceCodeEnum {
    OK(20001,"ok"),
    ERROR(50001,"error"),
    BAD_REQUEST(40001,"error");
    /**
     * 状态码
     */
    private Integer code;
    private String msg;
    ServiceCodeEnum(Integer code ,String msg) {
        this.code = code;
        this.msg = msg;
    }
}
